<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>美食分享平台</title>
    <link th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" rel="stylesheet">
    <link th:href="@{/asserts/css/FoodShare.css}" rel="stylesheet">
</head>
<body>
<!--引入抽取的topbar-->
<div th:replace="common/topbar::topbar"></div>

<div class="container-fluid">
    <div class="row">
        <!--引入侧边栏-->
        <div th:replace="common/sidebar::sidebar(active='category')"></div>
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <form action="/foodshare/category/addCategory" method="post">
                <div class="form-row">
                    <div class="form-group col-md-6">
                        <label>类别名称</label>
                        <input type="text" class="form-control" name="categoryName">
                    </div>
                    <div class="form-group col-md-6">
                        <label>状态</label>
                        <select name="status" class="form-control">
                            <option>1</option>
                            <option>0</option>
                        </select>
                    </div>
                </div>
                <button class="btn btn-primary" type="submit">添加</button>
            </form>
        </main>
    </div>
</div>
</body>
</html>